<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Lista degli Amici</title>
</head>
<body>
<a href="Homepage.jsp">Logout</a>
	<p> <%
	
			out.println(request.getAttribute("idSessione"));
			int size = Integer.parseInt(request.getAttribute("size").toString());
			for(int i = 0; i < size; i++){
				
				out.println("<form name = \" abilitapossedute\" method = \"post\" action = \"ProfiloServlet\">");
				
				out.println(request.getAttribute("idAmico" + i));
				out.println(request.getAttribute("nomeAmico" + i));
				out.println(request.getAttribute("cognomeAmico" + i));
				out.println("<input type = \"hidden\" name = \"idSessione\" value=\"" + request.getAttribute("idSessione") + "\">");
				out.println("<input type = \"hidden\" name = \"idRichiesta\" value=\"" + request.getAttribute("idAmico" + i) + "\">");
				out.println("<input type = \"submit\" value = \"Vai al Profilo\">");
				out.println("</form>");
			}
		%> </p>

</body>
</html>